﻿namespace sixgod.Enum
{
    #region 模板

    /// <summary>
    /// 节点类型
    /// </summary>
    public enum EnumNodeType
    {
        /// <summary>
        /// 审核
        /// </summary>
        Audit = 0,
        /// <summary>
        /// 抄送
        /// </summary>
        CarbonCopy = 1,
        /// <summary>
        /// 开始
        /// </summary>
        Start = 2,
        /// <summary>
        /// 结束
        /// </summary>
        End = 3
    }

    /// <summary>
    /// 审核模式
    /// </summary>
    public enum EnumAuditMode
    {
        /// <summary>
        /// 全部都需要审核
        /// </summary>
        All = 0,

        /// <summary>
        /// 一个通过则通过
        /// </summary>
        OnlyOne = 1
    }

    public enum EnumAuditResult
    {
        Agree = 0,
        Reject = 1
    }

    /// <summary>
    /// 审核人模式
    /// </summary>
    public enum EnumAuditor
    {
        /// <summary>
        /// 根据职位自动获取审核人
        /// </summary>
        Job = 0,

        /// <summary>
        /// 指定审核人
        /// </summary>
        Person = 1,

        /// <summary>
        /// 根据部门自动获取审核人
        /// </summary>
        Department = 2
    }

    /// <summary>
    /// 发起人类型
    /// </summary>
    public enum EnumStartType
    {
        /// <summary>
        /// 根据职位自动
        /// </summary>
        Job = 0,

        /// <summary>
        /// 指定审核人
        /// </summary>
        User = 1,

        /// <summary>
        /// 根据部门自动
        /// </summary>
        Department = 2
    }

    /// <summary>
    /// 流程等级
    /// </summary>
    public enum EnumWorkFlowLevel
    {
        Highest = 1,
        Common = 2
    }

    /// <summary>
    /// 流程回调类型
    /// </summary>
    public enum EnumCallBackType
    {
        API = 1,
        CAP = 2,
        SQL = 3
    }

    #endregion

    /// <summary>
    /// 节点操作
    /// </summary>
    public enum EnumNodeOperation
    {
        /// <summary>
        /// 同意
        /// </summary>
        Agree = 0,
        /// <summary>
        /// 拒绝
        /// </summary>
        Reject = 1,
        /// <summary>
        /// 开始
        /// </summary>
        Start = 2,
        /// <summary>
        /// 结束
        /// </summary>
        End = 3,
        /// <summary>
        /// 未处理
        /// </summary>
        No = 5,
    }
}